package cn.javass.dp.observer.example4;

public class Watcher implements  WatcherObserver{

    private String job;

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    @Override
    public void update(WaterQualitySubject subject) {
        System.out.println("job = " + job + "当前污染级别:" + subject.getPolluteLevel());
    }



}
